﻿using Entity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepository
{
    public interface IOrderDetailRepository
    {
        /// <summary>
        /// 按进货ID+货品编码查询进货明细（含事务参数）
        /// </summary>
        Task<PurchaseOrderDetailEntity> GetByPurchaseIdAndProductIdAsync(int purchaseId, int productId, IDbTransaction transaction);

        /// <summary>
        /// 更新进货明细的已入库数量（含事务参数）
        /// </summary>
        Task UpdateStkInNumAsync(PurchaseOrderDetailEntity entity, IDbTransaction transaction);
    }
}
